from time import sleep

from lagou_cekai.task3_1.thirteen_class_actual_combat.element.ele_add_member import EleAddMemberPage


class AddMemberPage(EleAddMemberPage):
    _url = "https://work.weixin.qq.com/wework_admin/frame#contacts"

    def add_member(self,name):
        '''
        填写成员资料，点击保存
        :return:
        '''
        from lagou_cekai.task3_1.thirteen_class_actual_combat.Page.contact_page import ContactPage
        self.xingming().send_keys(name)
        sleep(1)
        self.shibeihao().send_keys('100012')
        self.xingbie_nv().click()
        self.shoujihaoma().send_keys('17312345629')
        self.baocun().click()
        return  ContactPage(self.driver)